import sqlite3

cate = []
num = []
con = sqlite3.connect("car.db")
cur = con.cursor()
sql ='select 品牌,"2021-7"  from a  limit 0,5'
data1 = cur.execute(sql)
for item in data1:
    cate.append(item[0])
    num.append(item[1])
print(cate)
print(num)
cur.close()
con.close()